package com.okami.annotation;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Properties;
import java.util.function.Consumer;
import java.util.stream.IntStream;

/**
 * @author: TanJingyu
 * @create: 2021-01-18 09:46
 **/
class MainTest {
    public static void main(String[] args) throws ClassNotFoundException {
//        Class<? extends Demo> demoClass = Demo.class;

//        Annotation[] declaredAnnotations = demoClass.getDeclaredAnnotations();
//        Arrays.asList(declaredAnnotations).forEach(annotation -> {
//            System.out.println(annotation.annotationType());
//        });
//
//        System.out.println("--------------------");


//        Annotation[] annotations = demoClass.getAnnotations();
//        Arrays.asList(annotations).forEach(annotation -> {
//            System.out.println(annotation.annotationType());
//            System.out.println(annotation.getClass().getAnnotations().length);
//        });


        Class<DemoSon> demoSonClass = DemoSon.class;

    }
}
